home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / eedit4.arc / EEDIT.DOC next >
Text File  |  1989-10-13  |  22KB  |  473 lines

  1. The Easiest EDITor  by Tom Kihlken
  2. Version 2.4 - August 1989
  3.  
  4.  
  5. The Easiest EDITor is a general purpose full screen ASCII text editor. 
  6. It's designed for speed and ease of use and has features which make it 
  7. ideal for programmers as well as simple word processing.  Best of all, 
  8. there are no complex commands or keys to remember so you'll be able to 
  9. start using right away.  The following is a just a partial list of the 
  10. Easiest EDITors capabilities:
  11.  
  12.      o  Ability to edit multiple files simultaneoulsy.
  13.      o  Select, Cut and Paste commands for moving text between files.
  14.      o  Undelete commands to replace your mistakes.
  15.      o  Search and Replace commands work forward or backward.
  16.      o  Ability to execute DOS programs without leaving the editor.
  17.      o  Full support for advanced EGA and VGA display modes.
  18.      o  Pop up help describes the editing commands.
  19.      o  Easily customized with a simple enviornment string.
  20.      o  Compact and lightning fast assembly language programming.
  21.  
  22. If you don't like to read directions, at least finish reading these next 
  23. few paragraphs.  To print a copy of this manual, enter the following 
  24. command at the DOS prompt:
  25.  
  26.          PRINT  EEDIT.DOC
  27.  
  28. To install the Easiest EDITor on your hard disk, just copy EEDIT.EXE to a 
  29. directory in your path.  Then to use it you just type:
  30.  
  31.          EEDIT filename
  32.  
  33. You may also enter optional command parameters which are described later 
  34. in this manual.  If you omit the filename, the default file "NONAME" is 
  35. used.
  36.  
  37. When editing, the keypad keys perform their natural functions.  The 
  38. function keys (F1-F10) are used to execute the editing commands shown at
  39. the bottom of the screen.  Pressing the Alt key switches between the three 
  40. possible function key menus.  
  41.  
  42. This Editor program is shareware.  Shareware allows you to try the program 
  43. out before you buy it.  You may also make copies for your friends or post 
  44. it on another BBS.  If you like the program and want to continue using it, 
  45. you must register by sending your name, address, 20 dollars, and the 
  46. version number shown above to the following address.  Your support of 
  47. shareware insures continued development of good low cost software.
  48.  
  49.  
  50. Tom Kihlken
  51. 3665 McKibbon Road
  52. Saint Louis, Missouri 63114
  53.  
  54.  
  55. CURSOR MOVEMENT KEYS
  56.  
  57. The cursor movement keys are on the keypad and behave in the normal 
  58. manner.  For reference the complete descriptions appear below.  The Num 
  59. Lock key must be released to use the keypad keys on keyboards without a 
  60. separate keypad.  In addition to the  arrow keys, a mouse may be used 
  61. to move the cursor.
  62.  
  63.  
  64. Up          Moves the cursor up one row.  If the cursor is at the top
  65.             of the screen, the display is scrolled down.
  66. Down        Moves the cursor down one row.  If the cursor is at the
  67.             bottom of the screen, the display is scrolled up.
  68. Left        Moves the cursor left one character.
  69. Right       Moves the cursor right one character.
  70.  
  71. PgUp        Moves the cursor down one page.  The size of a page is
  72.             several rows less the total number of rows displayed.
  73. PgDn        Moves the cursor up one page.  The size of a page is
  74.             several rows less the total number of rows displayed.
  75. Home        Moves the cursor to the start of the current line.
  76. End         Moves the cursor to the end of the current line.
  77.  
  78. Ctrl-Left   Moves the cursor to the first letter of the previous word.
  79. Ctrl-Right  Moves the cursor to the first letter of the next word.
  80. Ctrl-Up     Moves the cursor to the top of the screen.  This function is
  81.             not available in keyboard compatibility mode.
  82. Ctrl-Down   Moves the cursor to the bottom of the screen.  This function
  83.             is not available in keyboard compatibility mode.
  84.  
  85. Ctrl-PgUp   Moves the cursor to the top of the file.
  86. Ctrl-PgDn   Moves the cursor to the end of the file.
  87. Ctrl-Home   Shifts the screen right eight columns horizontally.  This function 
  88.             can be used when lines are too long to fit in the display.
  89. Ctrl-End    Shifts the screen left eight columns horizontally.  This function 
  90.             can be used when lines are too long to fit in the display.
  91.  
  92.  
  93.  
  94. EDITING COMMAND KEYS
  95.  
  96. In addition to the cursor movement keys, the following keys have 
  97. special meaning to the editor.
  98.  
  99.  
  100. Alt    Switches the meaning of the function keys.  Each function key
  101.        can perform three commands.  The current function key menu is 
  102.        shown at the bottom of the display.
  103.  
  104. BS     Erases the character to the left of the cursor.  If the cursor
  105.        is at the start of a line, the line is joined with the previous
  106.        line.
  107.  
  108. Del    Deletes the character at the cursor position.  If the cursor is at
  109.        the end of a line, the following line is moved upward and appended.
  110.  
  111.  
  112. <CR>   Inserts a new line in the file.  The cursor is moved to the start
  113.        of the new line.  Any characters which were to the right of the
  114.        cursor are moved to the new line.
  115.  
  116. Ins    Toggles between insert and overstrike modes.  The current mode is
  117.        displayed on the status line.  When in insert mode, characters to
  118.        the right of the cursor are pushed forward as you type.  In
  119.        overstrike mode, new characters replace existing characters.
  120.  
  121. Tab    Inserts the tab character (Ascii 9); advancing the cursor to the 
  122.        next column which is an even multiple of eight.
  123.  
  124.  
  125.  
  126.  
  127. THE MAIN EDITING FUNCTIONS
  128.  
  129. These editing functions are accessed with the function keys (F1-F10).  The 
  130. function key assignments are always shown on a menu at the bottom of the 
  131. screen.  There are three seperate menus which may be selected by pressing 
  132. the Alt key.  To change menus, press and release the Alt key.
  133.  
  134.  
  135. Backup    Writes any modified buffers to disk and returns to the editing 
  136.           session.  If the /B option was specified, existing files are 
  137.           renamed with an extension of ".BAK".  Use Backup frequently 
  138.           during a lengthy editing session to insure your data is kept 
  139.           safely on disk.  After the buffers are written, they will be 
  140.           marked unmodified (see Show command).
  141.  
  142. Buffer    Each buffer contains a separate file.  The Buffer command 
  143.           changes the active buffer.  The name of the active buffer 
  144.           appears on the status line.  When a new buffer is opened, the 
  145.           exisiting file (if it exists) is read from disk.  To return to 
  146.           an existing buffer, enter it's name (names of existing buffers 
  147.           may be abbreviated).  The maximum number of buffers is 15 (or 
  148.           less depending on the amount of available memory).  Each buffer 
  149.           requires 64K bytes of RAM.
  150.  
  151. Chg Case  Changes the selected text from upper to lower case or vise 
  152.           versa.  You must use the Select function to select the desired 
  153.           region.
  154.  
  155. Cut       Removes the selected text and places it in the paste buffer.  You 
  156.           must use Select before using Cut.  The same cut/paste memory is 
  157.           used for all buffers.  This allows you to cut text from one file 
  158.           and paste it into another.  After Cutting text, you may paste it 
  159.           as many times as you like.
  160.  
  161. Del-Eol   Deletes text from the cursor position to the end of line.  
  162.  
  163. Del-L     Deletes the entire line of text at the cursor position.
  164.  
  165. Del-W     Deletes the word at the cursor position.  Deleted words may be
  166.           reinserted (copied) into the file more than once.
  167.  
  168. Direction Changes the direction for the Search and Replace commands.  The
  169.           current direction is shown at the bottom of the screen.
  170.  
  171.  
  172. Exit      Saves the current buffer and ends the editing session.  If 
  173.           multiple buffers are in use, you will be prompted before each
  174.           one is written.  Only modified buffers are written to disk.
  175.  
  176. Fill      Reformats the current paragraph so the text fits in the selected 
  177.           width.  Leading spaces, tabs, or blank lines can be used to 
  178.           delimit the paragraph.  The cursor is moved to the end of the 
  179.           paragraph.  Use the Width function to specify the desired width 
  180.           for Filling.
  181.  
  182. Find      Searches for a string starting at the current cursor position.
  183.           You may change the direction of the search with the Direction
  184.           command.
  185.  
  186. Help      Displays help information.  The editing buffers are not disturbed
  187.           by using the help mode.
  188.  
  189. Include   Inserts text from another Ascii file at the cursor position.  The
  190.           Include command does not create another buffer, it simply adds
  191.           the contents of another file to the current buffer.
  192.  
  193. Line      Moves the cursor to a specified line number.  Lines are delimited
  194.           by a carriage return (and optional line feed) character.
  195.  
  196. Match     Finds the matching delimiter.  The cursor must be on one of
  197.           the following characters: ()[]{}<>.  The cursor is moved to
  198.           the matching delimiter.
  199.  
  200. Paste     Inserts the contents of the paste buffer at the cursor position.  
  201.           The contents of the paste buffer may be used many times which
  202.           allows you to copy text.  Use the Select and Cut commands before 
  203.           using Paste.
  204.  
  205. Print     Sends selected text to the line printer.  Use the Select function
  206.           to select text which is to be printed.  Select a printer with the 
  207.           /Pn parameter (the default is LPT1).
  208.  
  209. Quit      Exits the editor without creating any new files.  All edits are
  210.           lost!  A warning is given if you attempt to Quit after a buffer
  211.           has been modified.
  212.  
  213. Replace   Substitutes one word or phrase for another.  You may Replace text
  214.           globally or selectively.  You may change the direction of the 
  215.           search with the Direction command.
  216.  
  217. Rename    Changes the filename associated with the active buffer.  The 
  218.           filename may include the drive and directory names.  The name
  219.           must conform to DOS standards (up to eight characters plus a 
  220.           three character extension.  If an invalid name is given, the 
  221.           command is not executed.  You must use the Rename command before 
  222.           exiting if you edit a file which is read-only.
  223.  
  224. Rows      Changes the number of rows displayed on the screen.  This function 
  225.           requires either an EGA or VGA compatible display.  The actual number
  226.           of rows you will get depends on the display adapter in use.
  227.  
  228.  
  229. Select    Enters the select mode.  When selecting text, use the cursor 
  230.           movement keys to highlight a region.  The selected text appears 
  231.           in inverse video.  Pressing Select a second time cancels select 
  232.           mode.  See also Cut, Paste, Print, Write, and Change Case.
  233.  
  234. Show      Displays information about all file buffers.  The current row,
  235.           file size, and width setting are shown.  The Show command also
  236.           indicates which buffers have been modified.  
  237.  
  238. Spawn     Pauses the editing session to allow execution of DOS commands.
  239.           To return to the editing session, type EXIT at the DOS prompt.
  240.  
  241. Udel Eol  Replaces text from the last "Delete to End-of-Line" command.
  242.  
  243. Udel W    Replaces the last deleted word at the cursor position.  Deleted
  244.           words may be reinserted (copied) into the file more than once.
  245.  
  246. Udel L    Replaces the last deleted line at the cursor position.  The
  247.           cursor need not be at the start of a line.  Deleted lines may 
  248.           be reinserted (copied) into the file more than once.
  249.  
  250. Width     Sets the width for automatic line wrap and the Fill function.  
  251.           The default setting for width is the number of columns on the 
  252.           display.  When typing in lines of text, a new line is inserted 
  253.           when the selected width is exceeded.  To disable automatic line 
  254.           wrap, set the width to a high value.  See also the Fill 
  255.           function.
  256.  
  257. Write     Writes a selected region of text into another disk file.  Use 
  258.           the Select function to select the desired region.  You will be 
  259.           prompted to enter the filename.  If the destination file already 
  260.           exists, you may append to it or truncate it.  You need not write 
  261.           the file before exiting, all modified buffers are always 
  262.           written. 
  263.  
  264.  
  265.  
  266.  
  267. USING THE MOUSE:
  268.  
  269. If you have a mouse attached to your PC, you may use it to position the 
  270. cursor and scroll the file up and down.  In addition, the mouse buttons 
  271. have the functions shown below.  If you prefer EEDIT not use the mouse, 
  272. enter the /NM parameters (see optional parameters).
  273.  
  274. Left Button   - Toggles the select mode on or off.
  275. Right Button  - Performs Cut function if a range of text has been Selected.
  276.                 Performs Paste function if no text is currently selected.
  277. Middle Button - Shows the status of buffers while held down.
  278.  
  279.  
  280.  
  281. THE OPTIONAL PARAMETERS:
  282.  
  283. You may specify optional parameters either when you run EEDIT or in an 
  284. enviornment string.  For example, entering the following command (or 
  285. placing it in your AUTOEXEC.BAT file) causes the Easiest EDITor to save backup 
  286. files, use white text on a blue background, and begin in overstrike mode.
  287.  
  288.              SET EEDIT=/BU/C7,1/O
  289.  
  290. The option parameters are:
  291.  
  292.   /An    Specify the scan code "n" for the key which you want to use to switch
  293.          command menus.  This is normally the Alt key (56).  Scan codes can
  294.          be found in a technical reference for your machine.  Some examples:
  295.                 /A29 - Ctrl key
  296.                 /A15 - Tab key
  297.                 /A1  - Esc key
  298.  
  299.   /BU    Causes BackUp files to be created with an extension of ".BAK".
  300.          Backup files are created when modified files are written to disk.
  301.  
  302.   /Cn,m  Selects foreground (n) and background (m) colors for text on the
  303.          screen.  Foreground colors range from 0-15.  Background colors range
  304.          from 0-7.  Highlighted text is indicated by using inverse video
  305.          which switches the foreground and background colors.  Following 
  306.          is a list of the available colors.
  307.  
  308.                 0 - Black        8 - Gray
  309.                 1 - Blue         9 - Bright Blue
  310.                 2 - Green       10 - Bright Green
  311.                 3 - Cyan        11 - Bright Cyan
  312.                 4 - Red         12 - Bright Red
  313.                 5 - Magenta     13 - Bright Magenta
  314.                 6 - Yellow      14 - Bright Yellow
  315.                 7 - White       15 - Bright White
  316.  
  317.   /CS    Causes all Search and Replace commands to be case sensitive.  The
  318.          default condition is for these commands to be case INsensitive.
  319.  
  320.   /Dn    Use the Windows compatible Display services for video output.  This 
  321.          mode allows EEDIT to run within a small window when using Microsoft 
  322.          Windows.  The logical window size is set to n rows (normally 25).
  323.  
  324.   /E     When this option is used, an End-of-file character (Ascii 26) is 
  325.          appended to the file when it is written.  For most applications,
  326.          the EOF character is not needed.  It may be necessary for 
  327.          compatibility for some software however.
  328.  
  329.   /KB    Use KeyBoard compatibility mode (see Advanced Features below). This
  330.          may be required for compatibility with troublesome resident programs.
  331.  
  332.   /Ln    Starts editing with the cursor positioned on line "n".  This is
  333.          useful when correcting a program and line number of the error is
  334.          known.
  335.  
  336.   /Mn,m  Selects foreground (n) and background (m) colors for the menu.
  337.          Foreground colors range from 0-15.  Background colors range from
  338.          0-7.  Note that a portion of the menu is displayed in inverse video.  
  339.          The available colors are listed with the /C parameter above.
  340.  
  341.   /NM    Tells EEDIT to Not use the Mouse.
  342.  
  343.  
  344.   /OS    Start editor in OverStrike mode (the default is Insert). You
  345.          can always switch from overstrike to insert with the Ins key.
  346.  
  347.   /Pn    Used to select a printer other than LPT1 for the print command.
  348.          For example; /P2 selects the second printer (LPT2).
  349.  
  350.   /Q     Selects Quiet mode, preventing beeps when invalid keystrokes are
  351.          entered.
  352.  
  353.   /Sn    Specify the maximum Size of each file buffer (in K bytes). The 
  354.          valid range is from 1 to 64.  Use this parameter to reduce memory 
  355.          usage when editing many small files.
  356.  
  357.   /Wn    Sets line Width for initial buffer to "n" columns.  This width can 
  358.          also be set with the function keys (Width command).  The default 
  359.          width is the number of columns on the display.  It is used by the
  360.          Fill command and for auto line-wrap.
  361.  
  362.   /X     Clear the screen before exiting to DOS.  
  363.  
  364.  
  365. HELPFUL HINTS:
  366.  
  367. If you've read this far, your nearly an expert.  These additional hints 
  368. will help you to get the most from the Easiest EDITor.
  369.  
  370. 1. There is a command stack for the following commands; Include, Rename,
  371.    Buffer, Write, Find, Replace, and Width.  To recall a previous command 
  372.    parameter, use the Up or Down arrows when prompted for the string.  You
  373.    may also edit the parameter with Insert, Delete, Home, and End.  
  374.    Pressing the down arrow erases the previous command parameter.
  375.  
  376. 2. You can enter control characters using the Ctrl key.  For example, to
  377.    insert a form feed (Ascii 12) press Ctrl-L.  You can enter the Escape
  378.    character by pressing the Escape key.  This is useful for sending 
  379.    printer control strings.
  380.  
  381. 3. To insert special characters (such as line drawing characters), press
  382.    the Alt key and type the Ascii code on the numeric keypad.  Pressing
  383.    Alt will also changes the function key menu at the bottom of the screen 
  384.    but this will not interfer with the special character.
  385.  
  386. 4. You may want to rename EEDIT.EXE to EDIT.EXE or just ED.EXE.  If you 
  387.    give it to your friends however, please keep the original distribution
  388.    files intact.  This includes EEDIT.EXE and EEDIT.DOC.
  389.  
  390. 5. The maximum size file which can be edited is 64K bytes.  Files can not
  391.    grow above this size.
  392.  
  393. 6. An inverse video diamond at the right edge of the screen indicates the 
  394.    line is longer than the width of the screen.  Press Ctrl-End to shift 
  395.    the visible portion of the lines to the left.
  396.  
  397. 7. If you experience a disk error while your file is being written, try
  398.    renaming the buffer (possibly using another disk drive) to avoid losing
  399.    your work.
  400.  
  401.  
  402. ADVANCED FEATURES:
  403.  
  404. You don't need to read the following information to run Easy Edit.  You 
  405. may find this useful, however, to perform advanced editing functions, or 
  406. if you have trouble getting it to run on your system.
  407.  
  408. 1. The Easiest EDITor normally writes directly to the screen.  If you run it 
  409.    with Microsoft Windows, you must specify the /D option if you want to use
  410.    a small window.  Specify the number of rows you want in the window.  If 
  411.    you later resize the window smaller, the menu prompt may not be visible.
  412.  
  413. 2. If you run Easy Edit with DESQview, a technique called "shadowing" is used 
  414.    to write to the window.  The keyboard compatibility mode will be used
  415.    automatically with DESQview (see below).
  416.  
  417. 3. EEDIT requires a minimum of 180K of available memory.  Additional file
  418.    buffers require 64K each.  You may relax this reqirement with the /An
  419.    parameter.
  420.  
  421. 4. Lines are delimited with the CR-LF sequence.  The LF character is optional
  422.    however for input files.  This is known as a "standard" Ascii file.
  423.  
  424. 5. Input files are read to their entire length (any imbedded EOF marks 
  425.    are ignored).  Files created by other programs sometimes have "garbage"
  426.    at the end.  If present, an EOF mark at the end of the file is not
  427.    displayed.
  428.  
  429. 6. You may edit binary files, although lines longer than the width of the
  430.    screen will not be visible.  An inverse video diamond is displayed at 
  431.    the right edge of the screen to indicate lines which don't fit in the
  432.    display.  Use Ctrl-Home and Ctrl-End to shift the logical display 
  433.    window sideways.
  434.  
  435. 7. EEdit creates a temporary file with the extension ".$$$" when it writes
  436.    out your new files.  If you discover one of these files on the disk
  437.    (after a system crash), you may safely delete it.
  438.  
  439. 8. The keyboard interrupt (vector 9) is intercepted to detect the Alt key 
  440.    press and other special key combinations.  All keys are passed on to
  441.    the BIOS keyboard handler to allow resident pop-up programs to function 
  442.    normally.  When in compatibility mode, the keyboard is not intercepted.
  443.  
  444. 9. Since EEDIT must control the keyboard directly, it may not work with 
  445.    certain resident utilities. A keyboard compatibility mode is provided 
  446.    to remedy this.  If pressing the Alt key seems to interfer with another
  447.    program, restart EEDIT in compatibility mode by using the "/K" parameter.
  448.    You can then use Alt-F1 (or any other function key) to change the 
  449.    function menu bar. The Ctrl-Up and Ctrl-Dn functions and the /An parameter 
  450.    will not work in compatibility mode.
  451.  
  452. 10. EEdit determines if a buffer is modified by computing a 32 bit token 
  453.     when the file is read in.  The algorithm includes the position of each 
  454.     character so that switching the order of words can be detected.  This
  455.     technique is superior to other methods since it can determine when a
  456.     file has been restored to its original state.
  457.  
  458.  
  459. NEW FEATURES FOR VERSION 2.4:
  460.  
  461. 1. Support for Microsoft compatible mice has been added.  The button 
  462.    assignments are:
  463.  
  464.       LEFT   - Toggle select mode On/Off. 
  465.       RIGHT  - Cuts text if select mode is On.  Pastes text if select mode
  466.                is Off.
  467.       MIDDLE - Shows the buffer status (three button mice only).
  468.  
  469. 2. If your using DESQview, EEDIT can be run in a "small" window.  EEDIT 
  470.    automatically detects DESQview and uses the keyboard compatibility mode.
  471.    You should press Alt-F1 to change the command menu.  EEDIT does not use 
  472.    the mouse when running under DESQview.
  473.